module.exports = options => {
    return async function(ctx, next) {
        await next();
        if (ctx.status == 404) {
            ctx.body = {
                code: 404,
                msg: '出具出现了问题',

            }
        } else
            ctx.body = ctx.body || {
                code: ctx.status,
                data: ctx.data,
                msg: ctx.msg,
            }

    }
}